import plugins from '@/plugins'
import {string} from '@/util'

export const deptApi = {
  /**
   * 获取部门信息，只有deptId,deptName,parentId
   * @param {String} cityId
   */
  getDeptsSimpleList: async (cityId) => {
    let res = await plugins.user.post("/admin/department/listSimple", {
      cityId
    });
    console.log('res',res)
    return res;
  },
  getDept: async (deptId) =>{
    let res = await plugins.user.post("/admin/department/departmentGet", {
      deptId: string(deptId)
    });
    return res;
  },
   getCorrespondingDept: async (deptId) =>{
    let res = await plugins.user.post("/admin/department/correspondingDepartment", {
    });
    return res;
  },
  
}
